package org.hnsd.train.pattern.state;

/**
 * @author youqd
 * @tag.date 2023-11-07 23:07
 **/
public class Context {
    private State state;

    public Context(State state) {
        this.state = state;
    }

    public void request() {
        state.handle(this);
    }

    public void setState(State state) {
        this.state = state;
    }
}
